From: Marco Trevisan (TreviƱo) Date: Fri, 13 Apr 2018 01:25:21 +0000 (-0400) Subject: st-private: Warn if creating shadow for unallocated actors X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2~5^2~28 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e39d7152f2e2b5bc16fcf82b6bc8f06a31d5fecb;p=gnome-shell.git st-private: Warn if creating shadow for unallocated actors --- diff --git a/src/st/st-private.c b/src/st/st-private.c index 882c2631e..512fbba45 100644 --- a/src/st/st-private.c +++ b/src/st/st-private.c @@ -432,6 +432,8 @@ _st_create_shadow_pipeline_from_actor (StShadow *shadow_spec, CoglPipeline *shadow_pipeline = NULL; float width, height; + g_return_val_if_fail (clutter_actor_has_allocation (actor), NULL); + clutter_actor_get_size (actor, &width, &height); if (width == 0 || height == 0)